<?php
class GroupAction extends Action {	
	
	function manage(){
		$this->getDisplay('manage');
	}
	
	
	function join(){
		$this->getDisplay('join');
	}
	
	
	private function getDisplay($type){
		$group = D('Group','group')->getGroup( $this->mid,$type );

		$this->assign( $group );
		$this->assign('type',$type);	
		$this->display('index');
	}
}
?>